package view

import "github.com/rivo/tview"

func TableBuilder(rows []string) *tview.Table {
	table := tview.NewTable().SetBorders(false).SetSelectable(false, false).SetSeparator(' ')
	for rowIdx, content := range rows {
		tableCell := tview.NewTableCell(content).SetAlign(tview.AlignLeft)
		table.SetCell(rowIdx, 0, tableCell)
	}
	return table
}
